import VueRouter from 'vue-router'

const routes=[
    {

        path:'/',
        name:'Home',
        component:()=>import('../components/Home'),


    },
    {

        path:'/category',
        name:'Category',
        component:()=>import('../components/Category'),


    },
    {
        path:'/userdetail',
        name:'Userdetail',
        component:()=>import('../components/Userdetail')
    },

    {
        path:'/detail',
        name:'Detail',
        component:()=>import('../components/Detail')
    },
    {
        path:'/login',
        name:'Login',
        component:()=>import('../components/Login')
    },
    {

        path:'/shopcar',
        name:'Shopcar',
        component:()=>import('../components/Shopcar'),


    },
    {

        path:'/order',
        name:'Order',
        component:()=>import('../components/Order'),


    },
    {

        path:'/pay',
        name:'Pay',
        component:()=>import('../components/Pay'),


    },
    {

        path:'/search',
        name:'Search',
        component:()=>import('../components/Search'),


    },
    {
        path: '/Alogin',
        name: 'Alogin',
        component: () => import('../components/Alogin')
    },
    {
        path: '/Ahome',
        name: 'Ahome',
        component: () => import('../components/Ahome'),
        children: [
            {
                path: '/Ame',
                name: 'Ame',
                component: () =>
                    import ( '../components/Ame')
            },
            {
                path: '/Abike',
                name: 'Abike',
                component: () =>
                    import ( '../components/Abike')
            },
            {
                path: '/Auser',
                name: 'Auser',
                component: () =>
                    import ( '../components/Auser')
            },
            {
                path: '/Aorder',
                name: 'Aorder',
                component: () =>
                    import ( '../components/Aorder')
            },
            {
                path: '/Adata',
                name: 'Adata',
                component: () =>
                    import ( '../components/Adata')
            },

        ],
    }


]


const router = new VueRouter({

    mode: 'history',
    routes

})

export default router;



